package com.example.forum.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
public class Article {
    private Long id;

    private Long boarId;

    private Long userId;

    private String title;
    //访问次数
    private Integer visitCount;
    //回复次数
    private Integer replyCount;
    //点赞次数
    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;
    //关联对象作者
    private User user;
    //关联对象板块
    private Board board;

    @ApiModelProperty("是否作者")
    private Boolean own;
}